import apiClient from "../config/request"


//通过邮箱发送验证码给用户
function sendEmail(to){
    console.log("to-----------"+to);
    return apiClient({
        url:`email/sendEmail/${to}`,
        method:'post',
        data:{to}
    })
}
function register(registerForm){
    console.log('发送的表单数据:', registerForm);
    return apiClient({
        url:`/register`,
        method:'post',
        data:registerForm
    })
}
export {sendEmail,register}